Optimal. Leaf size=92 \[ -\frac{\csc ^2(e+f x) \sec (e+f x) \cos ^2(e+f x)^{\frac{1}{2} (n p+1)} \text{Hypergeometric2F1}\left (\frac{1}{2} (n p-2),\frac{1}{2} (n p+1),\frac{n p}{2},\sin ^2(e+f x)\right ) \left (b (c \tan (e+f x))^n\right )^p}{f (2-n p)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.145556, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3659, 2601, 2577} \[ -\frac{\csc ^2(e+f x) \sec (e+f x) \cos ^2(e+f x)^{\frac{1}{2} (n p+1)} \, _2F_1\left (\frac{1}{2} (n p-2),\frac{1}{2} (n p+1);\frac{n p}{2};\sin ^2(e+f x)\right ) \left (b (c \tan (e+f x))^n\right )^p}{f (2-n p)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3659
Rule 2601
Rule 2577
Rubi steps
\begin{align*} \int \csc ^3(e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx &=\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \int \csc ^3(e+f x) (c \tan (e+f x))^{n p} \, dx\\ &=\left (\cos ^{n p}(e+f x) \sin ^{-n p}(e+f x) \left (b (c \tan (e+f x))^n\right )^p\right ) \int \cos ^{-n p}(e+f x) \sin ^{-3+n p}(e+f x) \, dx\\ &=-\frac{\cos ^2(e+f x)^{\frac{1}{2} (1+n p)} \csc ^2(e+f x) \, _2F_1\left (\frac{1}{2} (-2+n p),\frac{1}{2} (1+n p);\frac{n p}{2};\sin ^2(e+f x)\right ) \sec (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (2-n p)}\\ \end{align*}
Mathematica [B] time = 7.30732, size = 217, normalized size = 2.36 \[ \frac{\tan ^2\left (\frac{1}{2} (e+f x)\right ) \left (\cos (e+f x) \sec ^2\left (\frac{1}{2} (e+f x)\right )\right )^{n p} \left (b (c \tan (e+f x))^n\right )^p \left (2 \left (n^2 p^2-4\right ) \cot ^2\left (\frac{1}{2} (e+f x)\right ) \text{Hypergeometric2F1}\left (\frac{n p}{2},n p,\frac{n p}{2}+1,\tan ^2\left (\frac{1}{2} (e+f x)\right )\right )+n p \left ((n p-2) \text{Hypergeometric2F1}\left (n p,\frac{n p}{2}+1,\frac{n p}{2}+2,\tan ^2\left (\frac{1}{2} (e+f x)\right )\right )+(n p+2) \cot ^4\left (\frac{1}{2} (e+f x)\right ) \text{Hypergeometric2F1}\left (n p,\frac{n p}{2}-1,\frac{n p}{2},\tan ^2\left (\frac{1}{2} (e+f x)\right )\right )\right )\right )}{4 f n p \left (n^2 p^2-4\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 3.131, size = 0, normalized size = 0. \begin{align*} \int \left ( \csc \left ( fx+e \right ) \right ) ^{3} \left ( b \left ( c\tan \left ( fx+e \right ) \right ) ^{n} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \csc \left (f x + e\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \csc \left (f x + e\right )^{3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \csc \left (f x + e\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]